export interface ResponseBaseData {
  code: number
  ok: boolean
  message: string
}

export interface responseData {
  name: string
  category1Id?: number
  category2Id?: number
  createTime: string
  updateTime: string
  id: number | string
}

export interface CategoryResponseData extends ResponseBaseData {
  data: responseData[]
}

export interface AttrValue {
  id?: number | string
  attrId?: number | string
  isFlag?: boolean
  valueName: string
}
// export type attrValueList = AttrValue[]
// 返回的data数据类型
export interface Attr {
  id?: number | string
  categoryLevel?: number | string
  categoryId: number | string
  attrName: string
  attrValueList: AttrValue[]
  createTime?: any
  updateTime?: any
}

// export  AttrList = Attr[]

// 返回的接口数据类型
export interface AttrResponseData extends ResponseBaseData {
  data: Attr[]
}
